<style type="text/css">
    .left-panel {
        float: left;
        width: 100%;
    }

    .right-panel {
        float: right;
        width: 20%;
        padding-left: 40px;
    }
</style>


<form name="create_form" id="create_form" method="POST" action="?r=storeconfig/popup" enctype="multipart/form-data">
    <div class="left-panel">
        <h3>Thông tin quảng cáo</h3><hr />
        <table>
            <tr>
                <td><label for="normal">Title</label></td>
            </tr>
            <tr>
                <td><input name="ads_title"  value="<?php echo $data['ads_title'];?>"  type="text" size="70" style="width:550px"></td>
            </tr>
            <tr>
                <td><label for="normal">Link<br /> (Thêm nhiều email tách nhau bởi dấu ',')</label></td>
            </tr>
            <tr>
                <td><input name="ads_link"  value="<?php echo $data['ads_link'];?>"  type="text" size="70" style="width:550px"></td>
            </tr>
        </table>
        <br />

        <input type="hidden" id="icon"/>
        <input type="hidden" id="screenshot"/>
        <input type="hidden" id="images"/>
        <input type="hidden" id="profile"/>
        <table border="0">
            <tr>
                <td>
                    <label for="normal">Ảnh popup</label>
                    <input name="images" id="thumb" type="file"  size="20" style="opacity: 0;">
                    <input type ="hidden" name="ads_image" value="<?php echo $data['ads_image'];?>" id="thumb_url"/>
                </td>

            </tr>
            <tr>
                <td>
                    <div><img id="thumb_content" src="<?php echo $data['ads_image'];?>" style="width:200px;height:200px;margin-top:15px"></div>
                    <div id="thumb_status"></div>
                </td>

            </tr>
        </table>
    </div>

    <span style="clear: both"></span>

    <center>
        <button class="btn" id="create" href="#"><span class="icon16 icomoon-icon-cog"></span>Save</button>

    </center>
</form>